<div class="modal-dialog">
    <div class="modal-content">
        <form role="form" method="post" id="addForm" action="{:U('user/password')}">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">修改密码<small>[{$nickname}]</small></h4>
            </div>
            <div class="modal-body">
				<input type="hidden" name="id" value="{$id}" />
                <div class="form-group">
                    <label for="password">新密码</label>
                    <input type="text" class="form-control"  name="password" id="password" maxlength="16">
                </div>
               
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-danger">确认保存</button>
            </div>
        </form>
       <script type="text/javascript">
       	 $("#addForm").submit(function(e){ 
        	
        	var password = $("#password").val();
        	if(password.length < 6){ 
        		e.preventDefault();
        		return tips('密码不能小于6位',"danger");
        	}
        	return;
        });
       </script>
    </div>
    